This script offers a simple way to maintain the following folders: BBEdit Lite Recents, Eudora Cache, Eudora Parts, Explorer Download Cache, Explorer Temporary Items, MRJ Cache, NetFinder Directory Cache, Navigation Services, TechTool Pro's Trash Cache and Temporary Items.
Tested on Mac OS 8.6 and AppleScript 1.3.7 (by Jean-François Martineau)
Tested on Mac OS 9.1 and AppleScript 1.6
Tested on Mac OS 9.2.2 and AppleScript 1.7 (by Jack Mahon)
Compatible with non-English (localized) operation systems.
Special thanks to Jack Mahon for his excessive tests on Mac OS 9.2.2 environment.
Bugs, comments and suggestions are always welcome.
I suggest you to read this document entirely before using this script first time before clicking the "Clean" button.
Upon launch, it checks the related folders and items, gathers the information and shows to you. It does not delete anything if you take the "Cancel" option. Again, it does not delete anything if the related checkboxes don't have the checkmark and it also has a self-control, if you put any checkmark(s) accidentally (see below). In case of any unwanted deletions, you can find the deleted items in trash (except for TechTool Pro's Trash Cache).
If you want the trash to be emptied next to the deletions, put a checkmark for Empty trash option.
What's new in 1.3?
- Added backward compatibility for Mac OS 8.6 and AppleScript 1.3.7.
- Jon’s Commands 2.1.2 scripting addition is required.
- Version checking for the required scripting additions.
- Works properly, even if the system folder wasn't at the root level of the startup disk.
- Can follow an alias; to Eudora Folder, in system folder. Eudora users who have the Eudora Folder in documents folder instead of system folder, are now able to put an alias for it into the system folder. (Thanks to Neil Schwartzman, for his suggestion.)
What's new in 1.2?
- Added compatibility for Mac OS 9.2.2 and AppleScript 1.7.
- New message windows while gathering information and deleting the files.
What's new in 1.0.1?
- True checking for the Dialog Director Scripting Addition, at launch.
- No default button. In the previous version, pressing the Esc key was causing the "Clean" button to be activated.
- The real names of applications will be used (instead of the fixed ones) while reporting active status for any of them.
- Reported folder and file sizes now are physical.
- All items in the nested folders of any folder will be calculated.
- The busy status of the items in the Temporary Items folder will be checked.
- Internet Explorer Download Cache file size; limit for deletion, is now 4 K.
- Preferred system font will be used instead of fixed Charcoal.
- Faster scanning.
- Custom icon.
Paths and descriptions of the functions:
BBEdit Lite Recent Files & Favorites
Deletes all items in BBEdit Lite Recent Files & Favorites folder (not the folder itself) in BBEdit Lite Preferences folder in Preferences folder. If you don't have BBEdit Lite installed, you get a "Folder not found" message in the related row. Otherwise, you'll see the count and size of the items in the folder and a checkmark, or "Folder empty" without a checkmark. If you don't want to delete those items, remove the checkmark. If any version of BBEdit application were active (regardless the name of the application), you'll see "BBEdit active" instead of the count and size of the items without a checkmark. If you put the checkmark here, don't worry, script still won't delete any items if the BBEdit application were active.
BBEdit Lite Recent Folders & Favorites
Deletes all items in BBEdit Lite Recent Folders & Favorites folder (not the folder itself) in BBEdit Lite Preferences folder in Preferences folder. If you don't have BBEdit Lite installed, you get a "Folder not found" message in the related row. Otherwise, you'll see the count and size of items in the folder and a checkmark, or "Folder empty" without a checkmark. If you don't want to delete those items, remove the checkmark. If any version of BBEdit application were active (regardless the name of the application), you'll see "BBEdit active" instead of the count and size of the items without a checkmark. If you put the checkmark here, don't worry, script still won't delete any items if the BBEdit application were active.
Eudora Cache
Deletes all items in Cache Folder (not the folder itself) in Eudora Folder in System Folder. If you don't have Eudora installed, you get a "Folder not found" message in the related row. Otherwise, you'll see the count and size of the items in the folder and a checkmark, or "Folder empty" without a checkmark. If you don't want to delete those items, remove the checkmark. If any version of Eudora application were active (regardless the name of the application), you'll see "Eudora active" instead of the count and size of the items without a checkmark. If you put the checkmark here, don't worry, script still won't delete any items if the Eudora application were active. Use this option with care. If you have any emails; related to the items in this folder, in your mailbox, you may get broken links with them.
If you keep your Eudora Folder in your documents folder; instead of system folder, create an alias for it and put it into your system folder. Remove the word " alias" from the end of the alias, after moving it into your system folder. Its name should be exactly "Eudora Folder".
Eudora Parts
Deletes all items in Parts Folder (not the folder itself) in Eudora Folder in System Folder. If you don't have Eudora installed, you get a "Folder not found" message in the related row. Otherwise, you'll see the count and size of the items in the folder and a checkmark, or "Folder empty" without a checkmark. If you don't want to delete those items, remove the checkmark. If any version of Eudora application were active (regardless the name of the application), you'll see "Eudora active" instead of the count and size of the items without a checkmark. If you put the checkmark here, don't worry, script still won't delete any items if the Eudora application were active. Use this option with care. If you have any emails; related to the items in this folder, in your mailbox, you may get broken links with them.
If you keep your Eudora Folder in your documents folder; instead of system folder, create an alias for it and put it into your system folder. Remove the word " alias" from the end of the alias, after moving it into your system folder. Its name should be exactly "Eudora Folder".
Explorer Download Cache
Deletes the Download Cache file in Explorer folder in Preferences folder if the size of the file greater than 4 K. If you don't have Internet Explorer installed; you get a "Folder not found" message in the related row. Otherwise, you'll see the 1 and size of the file, or "File not Found" without a checkmark. If you don't want to delete the file, remove the checkmark. If any version of Internet Explorer application were active (regardless the name of the application), you'll see "Explorer active" instead of the 1 and size of the file without a checkmark. If you put the checkmark here, don't worry, script still won't delete any items if the Internet Explorer application were active. Additionally, if the file size is not greater than 4 K, script still won't delete the file, even if you put a checkmark.
Explorer Temporary Items
Deletes all items in Temporary Items (not the folder itself) in Explorer folder in Preferences folder. If you don't have Internet Explorer installed, you get a "Folder not found" message in the related row. Otherwise, you'll see the count and size of the items in the folder and a checkmark, or "Folder empty" without a checkmark. If you don't want to delete those items, remove the checkmark. If any version of Internet Explorer application were active (regardless the name of the application), you'll see "Explorer active" instead of the count and size of the items without a checkmark. If you put the checkmark here, don't worry, script still won't delete any items if the Internet Explorer application were active.
MRJ Cache
Deletes all items in MRJ Cache (not the folder itself) in Application Support folder in System Folder. If you don't have Apple's MRJ (2.5.5+) installed, you get a "Folder not found" message in the related row. Otherwise, you'll see the count and size of the items in the folder and a checkmark, or "Folder empty" without a checkmark. If you don't want to delete those items, remove the checkmark. Note that this function only works with Apple's MRJ (2.5.5+). Apple's MRJ 2.5.3 or 2.5.4 puts the MRJ Cache folder in the Preferences folder instead of the Application Support folder in the System Folder. If you have either Apple's MRJ 2.5.3 or 2.5.4 you can use, my •[MRJ Cache] script which can handle all.
Navigation Services
Deletes all items in Navigation Services folder (and the folder itself) in Preferences folder. You'll see the count and size of the items in the folder and a checkmark. If you don't want to delete those items, remove the checkmark. If Navigation Services folder wasn't existed, you'll see "Folder not found".
NetFinder Directory Cache
Deletes all items in NetFinder Directory Cache (not the folder itself) in NetFinder 2 Preferences folder in Preferences folder. If you don't have NetFinder installed, you get a "Folder not found" message in the related row. Otherwise, you'll see the count and size of the items in the folder and a checkmark, or "Folder empty" without a checkmark. If you don't want to delete those items, remove the checkmark. If any version of NetFinder application were active (regardless the name of the application), you'll see "NetFinder active" instead of the count and size of the items without a checkmark. If you put the checkmark here, don't worry, script still won't delete any items if the NetFinder application were active.
TechTool Pro's Trash Cache
Deletes all items (except the •TP3•TrashCacheHistory file) in •TP3• TrashCache folder (not the folder itself) on all mounted local volumes. You'll see the count and size of the items in the folder and a checkmark. If you don't want to delete those items, remove the checkmark. If •TP3• TrashCache folder wasn't existed, you'll see "Folder not found". Due to technical difficulties, sizes; reported for the items of this folder, are not physical.
Temporary Items
Deletes all items in (invisible) Temporary Items (not the folder itself). You'll see the count and size of the items in the folder and a checkmark, or "Folder empty" without a checkmark. If you don't want to delete those items, remove the checkmark. Use this option without any other applications; were open, which might have some temporary files in this folder. This script will look both; at the creator codes and busy status, of the files in this folder and if it detects any active applications which have the same creator code or a busy file, you'll see "Items in use" and it won't let you to delete those files regardless the status of the checkmark.
For maximum safety, active applications list will be taken from the system twice; just before the dialog shown and just after the "Clean" button pressed. So, if any applications; launched while the dialog open, will be detected again in the last pass and any deletions related to them won't be done.